import { EHttpMethod } from 'Typings/system';
import { getApiParams } from 'Configs/common';

const { apiPrefix } = getApiParams();
const enumTableApis = {
    addEnum: {
        name: 'addEnum',
        url: `${apiPrefix}/data-lib/enum-dict/[:biz-flag]/[:biz-id]`,
        method: EHttpMethod.POST,
    },
    getEnum: {
        name: 'getEnum',
        url: `${apiPrefix}/data-lib/enum-dict/[:biz-flag]/[:biz-id]`,
        method: EHttpMethod.GET,
    },
    patchEnum: {
        name: 'patchEnum',
        url: `${apiPrefix}/data-lib/enum-dict/[:biz-flag]/[:biz-id]/[:id]`,
        method: EHttpMethod.PATCH,
    },
    deleteEnum: {
        name: 'deleteEnum',
        url: `${apiPrefix}/data-lib/enum-dict/[:biz-flag]/[:biz-id]/[:ids]`,
        method: EHttpMethod.DELETE,
    },
};
export default enumTableApis;
